package com.bnz.pojo;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * 类名：
 * 作者：WF
 * 功能：
 */
@Data
@PropertySource("classpath:test/test.properties")
@Component
public class Book2 {
	@Value("${book2.id}")
	private int id;
	@Value("${book2.name}")
	private String name;
	@Value("${book2.author}")
	private String author;

}
